chore(selfhost): remove dead nonConsumingRetryDelayMs export - #6357
Conversation
A repo-wide search confirms its only reference besides its own definition was its dedicated test — the sibling consumingRetryDelayMs is the one actually used by both queue backends. Closes JSONbored#6287
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
|
Tip ✅ LoopOver review result - approve/merge recommendedReview updated: 2026-07-16 04:13:11 UTC
Review summary Nits — 3 non-blocking
Decision drivers
Context & advisory signals — never blocks the verdict
Linked issue satisfactionAddressed Review context
Contributor next steps
Signal definitions
🧪 Chat with LoopOverAsk LoopOver a question about this PR directly in a comment — grounded only in the same cached, public-safe facts shown above, never a new claim.
Full command reference: https://gittensory.aethereal.dev/docs/loopover-commands 🧪 Experimental — new and may change. 🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by LoopOver, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6357 +/- ##
==========================================
- Coverage 95.60% 95.60% -0.01%
==========================================
Files 598 598
Lines 47202 47201 -1
Branches 15022 15022
==========================================
- Hits 45128 45127 -1
Misses 1290 1290
Partials 784 784
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Closes #6287
Summary
nonConsumingRetryDelayMsfromsrc/selfhost/queue-common.ts— a trivial pass-through alias togithubRateLimitRetryDelayMswith zero real (non-test) callers anywhere in the repo. Its siblingconsumingRetryDelayMsis the one actually used by both queue backends.selfhost-queue-common.test.ts's "keeps only GitHub rate limits on the non-consuming retry path") and the now-unused import.Scope
type(scope): short summaryConventional Commit format.CONTRIBUTING.mdand does not reintroduce GitHub Pages, VitePress,site/, orCNAME.Validation
git diff --checknpm run actionlintnpm run typecheck— roottsc --noEmitOOMs on this shared sandbox regardless of branch (reproduced identically on a cleanmaincheckout viagit stash). No substitute typecheck was needed here beyond what vitest's esbuild transform already catches, since the change is a pure removal (no new type surface) confirmed by a repo-wide grep showing zero remaining references.npm run test:coverage— not run repo-wide (same OOM risk), but the full set of tests importing fromqueue-common.tswas run directly and passes:selfhost-sqlite-queue.test.ts,queue-5.test.ts,selfhost-queue-common.test.ts,queue-2.test.ts,selfhost-pg-queue.test.ts,queue-4.test.ts,queue.test.ts,queue-3.test.ts,selfhost-installation-concurrency-admission.test.ts,queue-lifecycle-guards.test.ts— 1273/1273 passing. (index.test.tsin the same run fails on a pre-existing, unrelatedCannot find package '@sentry/hono/cloudflare'module-resolution error insrc/api/routes.ts/src/index.ts— reproduced identically on a cleanmaincheckout with this diff stashed, so it predates and is unrelated to this change.) This PR is a pure deletion of dead code and its own test, so patch coverage is inherently 100% (no new lines added).npm run test:workers— N/A, no Worker-facing behavior changed.npm run build:mcp/npm run test:mcp-pack— N/A, no@loopover/mcpchanges.npm run ui:openapi:check— N/A, no API/OpenAPI changes.npm run ui:lint/npm run ui:typecheck/npm run ui:build— N/A, noapps/loopover-uichanges.npm audit --audit-level=moderate— 0 vulnerabilities.If any required check was skipped, explain why:
npm run typecheck/npm run test:coverage: this sandbox runs on a machine shared with other concurrent sessions; the roottsc --noEmitreliably OOMs under that memory pressure regardless of what changed (reproduced identically with this branch's diff fully stashed againstmain). Substituted with a full repo-wide grep confirming zero remaining references to the removed export, plus every directly-importing test file run and passing (1273/1273).Safety
UI Evidencesection below with screenshots. — N/A, no visible UI change.CHANGELOG.mduntouched.Notes
grep -rln "nonConsumingRetryDelayMs" src/(excluding its own definition file) that no production code imports it, matching the issue's finding exactly.